import http from "@/utils/http";
import { headerCommon } from "../header";

enum API {
    GET_NOTICE_LIST_API = '/1.1/classes/notice'
}

export const getNoticeListApi = (data?) =>
    http.get<any, any>(API.GET_NOTICE_LIST_API + `${data ? `?where=${JSON.stringify(data)}` : ""}`, {
        headers: headerCommon
    })